package com.example.fruitdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.fruitdemo.pojo.User;
import com.example.fruitdemo.ruslet.R;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface UserService extends IService<User> {
    R<String> login(User user, HttpServletResponse response) throws IOException;

    R<String> loginout(String authroization);

    R<Object> register(User user,HttpServletResponse response);
    //找回密码
    R<Object> resetpwd(User user,HttpServletResponse response);

    R<User> getUser(String authorization);
    //根据authorization获取用户id
    Long getidByAuth(String authorization);
    //修改用户信息
    R<Object> setuser(User user);
}
